package cn.springcloudandalibaba.controller;

import cn.springcloudandalibaba.dao.Product;
import cn.springcloudandalibaba.mapper.ProductMapper;
import cn.springcloudandalibaba.service.IProductService;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ProductController implements IProductService {
    @Resource
    private ProductMapper productMapper;

    @Override
    public int InsertProduct(Product mallOrder) {
        return 0;
    }

    @Override
    public void UpdateProduct(Product mallOrder) {

    }
    @Override
    public Product  SelectProduct(@RequestParam("id") int id){
      return   productMapper.selectById(id );
    }
}
